home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 42
/
Mac Magazin and MacEasy Magazine CD - Issue 42.iso
/
Software
/
Mobiles Büro
/
Newton
/
Accordian 1.0b
/
ADF Folder
/
newton.adf
< prev
next >
Wrap
Text File
|
1997-02-06
|
17KB
|
443 lines
// February 6, 1997
// Notes Application
application "paperroll" called "Notes"
// Notes Soup
soup "Notes" called "Notes" of "paperroll" range "optionalDateRange"
overview "notes:date" called "By Date" of "Notes" queries "timestamp" contains
{
column "Date" width 115 is timestamp
column "Note Title" width 200 is title
}
class "paperroll" called "Note" of "Notes" contains
{
data: note called "Note" with options { "required" "automatic" }
title: string called "Title"
timestamp: datetime called "Date" default ""
viewstationery := symbol "paperroll"
height := value 200
}
class "checkList" called "Check List" of "Notes" contains
{
timestamp: datetime called "Date" default ""
title: string called "Title"
topics: array called "Topics" with options { "checklistnote" "required" } { entry called "Topic" contains
{
mtgdone: boolean called "Checked" default "O"
hideCount: integer called "Hide Count" default "0"
level: integer called "Level" default "1"
text: text called "Text" with options { "automatic" }
viewbounds := bounds { 0 0 200 30 }
}
}
viewstationery := symbol "paperroll"
height := value 200
data := nil
}
class "list" called "Outline" of "Notes" contains
{
timestamp: datetime called "Date" default ""
title: string called "Title"
topics: array called "Topics" with options { "outlinenote" "required" } { entry called "Topic" contains
{
hideCount: integer called "Hide Count" default "0"
level: integer called "Level" default "1"
text: text called "Text" with options { "automatic" }
viewbounds := bounds { 0 0 200 30 }
}
}
viewstationery := symbol "paperroll"
height := value 200
data := nil
}
// Names Application
application "cardfile" called "Names"
soup "Names" called "Names" of "cardfile" range "textRange"
overview "names:phones" called "Phone List" of { "cardfile" "Names" } queries "sortOn" contains
{
column "Name" width 150 is sortOn
column "Phone" width 117 is [ phones, 0 ]
}
overview "names:email" called "E-Mail List" of { "cardfile" "Names" } queries "sortOn" contains
{
column "Name" width 150 is sortOn
column "E-Mail" width 117 is email
}
overview "names:company" called "Company List" of { "cardfile" "Names" } queries "sortOn" contains
{
column "Name" width 150 is sortOn
column "Company" width 117 is company
}
overview "names:bday" called "Birthday List" of { "cardfile" "Names" } queries "sortOn" contains
{
column "Name" width 150 is sortOn
column "Birthday" width 117 is bday
}
class "Person" called "Person" of { "cardfile" "Names" } contains
{
sortOn := format "%s %s" { name.last name.first }
name: entry called "Name" with options { "required" } contains
{
honorific: string called "Honorific" with options { "automatic" }
first: string called "First" with options { "automatic" }
last: string called "Last" with options { "automatic" }
}
addresses: set called "Address" firststoredin || { entry called "Address" contains
{
address: string called "Street"
address2: string called "Street"
city: string called "City"
region: string called "Region/State"
postal_code: string called "Postal Code"
country: string called "Country"
}
}
companies: set called "Company" firststoredin || { entry called "Company" contains
{
company: string called "Name"
title: string called "Title"
}
}
pagers: set called "Pager" { entry called "Pager" contains
{
pagerNum: string called "Pager" class "pagerClasses" with options { "titlefromclass" "firstclasswild" }
pagerPIN: string called "Pager PIN"
}
}
phones: set called "Phone" { string called "Phone" class "phoneClasses" with options { "titlefromclass" "firstclasswild" } }
emailAddrs: set called "E-Mail" firststoredin || { entry called "E-Mail" contains
{
email: string called "EMail" class "mailClasses" with options { "titlefromclass" "firstclasswild" }
}
}
bday: date called "Birthday"
anniversary: date called "Anniversary"
notes: note called "Notes"
cardType: integer called "Card Type"
}
class "company" called "Company" of { "cardfile" "Names" } contains
{
sortOn := format "%s" { company }
company: string called "Company" with options { "required" }
names: set called "Name" firststoredin name { entry called "Name" contains
{
honorific: string called "Honorific"
first: string called "First Name"
last: string called "Last Name"
title: string called "Title"
}
}
addresses: set called "Address" firststoredin || { entry called "Address" contains
{
address: string called "Street"
address2: string called "Street"
city: string called "City"
region: string called "Region"
postal_code: string called "Postal Code"
country: string called "Country"
}
}
phones: set called "Phone" { string called "Phone" class "phoneClasses" with options { "titlefromclass" "firstclasswild" } }
emailAddrs: set called "E-Mail" firststoredin email { string called "EMail" class "mailClasses" with options { "titlefromclass" "firstclasswild" } }
notes: note called "Notes"
cardType: integer called "Card Type"
}
class "owner" called "Owner" of { "cardfile" "Names" } with options { "nofolders" } contains
{
labels := symbol "_ownerNames"
sortOn := format "%s %s" { name.last name.first }
name: entry called "Name" with options { "required" } contains
{
honorific: string called "Honorific" with options { "automatic" }
first: string called "First" with options { "automatic" }
last: string called "Last" with options { "automatic" }
}
addresses: set called "Address" firststoredin || { entry called "Address" contains
{
address: string called "Street"
address2: string called "Street"
city: string called "City"
region: string called "Region/State"
postal_code: string called "Postal Code"
country: string called "Country"
}
}
companies: set called "Company" firststoredin || { entry called "Company" contains
{
company: string called "Name"
title: string called "Title"
}
}
pagers: set called "Pager" firststoredin || { entry called "Pager" contains
{
pagerNum: string called "Pager" class "pagerClasses" with options { "titlefromclass" "firstclasswild" }
pagerPIN: string called "Pager PIN"
}
}
phones: set called "Phone" { string called "Phone" class "phoneClasses" with options { "titlefromclass" "firstclasswild" } }
emailAddrs: set called "E-Mail" firststoredin || { entry called "E-Mail" contains
{
email: string called "EMail" class "mailClasses" with options { "titlefromclass" "firstclasswild" }
emailpassword: string called "Password"
}
}
owner: entry called "Owner Information" contains
{
bankAccounts: set called "Bank Account" { entry called "Bank Account" contains
{
bankAcctNum: string called "Acct #"
bankContactNum: string called "Phone" class "phoneClasses" with options { "titlefromclass" "firstclasswild" }
}
}
creditCards: set called "Credit Card" { entry called "Credit Card" contains
{
creditCardNum: string called "Card #"
creditCardName: string called "Name" class "creditClasses" with options { "titlefromclass" "firstclasswild" }
creditCardExpDate: date called "Exp. Date"
creditCardContactNum: string called "Phone #"
}
}
}
bday: date called "Birthday"
anniversary: date called "Anniversary"
notes: note called "Notes"
cardType: integer called "Card Type"
}
class "worksite" called "Worksite" of { "cardfile" "Names" } with options { "nofolders" } contains
{
labels := symbol "_ownerNames"
sortOn:= format "%s" { place }
place: string called "Worksite" with options { "required" }
areaCode: string called "Area Code"
dialingPrefix: string called "Dialing Prefix"
notes: note called "Notes"
}
field class "creditClasses" |string.card| is "Card" ""
field class "creditClasses" |string.card.phonecard| is "Phone Card" ""
field class "creditClasses" |string.card.creditcard| is "Credit Card" ""
field class "creditClasses" |string.card.phonecard.att| is "AT&T" ""
field class "creditClasses" |string.card.phonecard.mci| is "MCI" ""
field class "creditClasses" |string.card.phonecard.sprint| is "Sprint" ""
field class "creditClasses" |string.card.creditcard.visa| is "VISA" ""
field class "creditClasses" |string.card.creditcard.mastercard| is "MasterCard" ""
field class "creditClasses" |string.card.creditcard.amex| is "AmEx" ""
field class "creditClasses" |string.card.creditcard.discover| is "Discover" ""
field class "pagerClasses" |string.pager| is "Pager" ""
field class "pagerClasses" |string.pager.skytel| is "SkyTel" ""
field class "pagerClasses" |string.pager.mobilecomm| is "MobileComm" ""
field class "pagerClasses" |string.pager.embarc| is "EMBARC" ""
field class "phoneClasses" otherPhone is "Phone" ""
field class "phoneClasses" homePhone is "Home" "H"
field class "phoneClasses" workPhone is "Work" "W"
field class "phoneClasses" faxPhone is "Fax" "F"
field class "phoneClasses" carPhone is "Car" "A"
field class "phoneClasses" mobilePhone is "Cellular" "C"
field class "phoneClasses" homeFaxPhone is "Home Fax" "HF"
field class "mailClasses" |string.email| is "Email" ""
field class "mailClasses" |string.email.internet| is "Internet" ""
field class "mailClasses" |string.email.aol| is "America Online" ""
field class "mailClasses" |string.email.compuserve| is "CompuServe" ""
field class "mailClasses" |string.email.mcimail| is "MCI Mail" ""
field class "mailClasses" |string.email.attmail| is "AT&T Mail" ""
field class "mailClasses" |string.email.easylink| is "EasyLink" ""
field class "mailClasses" |string.email.prodigy| is "Prodigy" ""
field class "mailClasses" |string.email.genie| is "GEnie" ""
field class "mailClasses" |string.email.delphi| is "Delphi" ""
field class "mailClasses" |string.email.msn| is "Network" ""
field class "mailClasses" |string.email.interchange| is "Interchange" ""
field class "mailClasses" |string.email.radiomail| is "RadioMail" ""
// Calendar Application
// Note that the calendar application is written using metasoups as the
// format is too complex and not really documented.
application "calendar" called "Calendar" with options { "nofolders" }
// Calendar Metasoup
metasoup "calendar:metasoup:REVELAR" called "Meetings" of "calendar" range "dateRange"
overview "meetings:date" called "By Date" of "calendar:metasoup:REVELAR" queries "mtgStartDate" contains
{
column "Date" width 115 is mtgStartDate
column "Description" width 200 is mtgText
}
class "meeting" called "Meeting" of "calendar:metasoup:REVELAR" contains
{
mtgStartDate: datetime called "Date" with options { "required" }
mtgText: string called "Title" with options { "required" }
mtgDuration: integer called "Duration" with options { "required" }
notes: note called "Notes"
mtgAlarm: datetime called "Alarm"
location: string called "Location" with options { "readonly" }
invitees: set called "Invitees" with options { "readonly" }
{
string called "Invitee" with options { "readonly" }
}
}
class "repeatingMeeting" called "Repeating Meeting" of "calendar:metasoup:REVELAR" contains
{
mtgStartDate: datetime called "Date" with options { "required" }
mtgText: string called "Title" with options { "required" }
mtgDuration: integer called "Duration" with options { "required" }
notes: note called "Notes"
mtgAlarm: datetime called "Alarm"
location: string called "Location" with options { "readonly" }
invitees: set called "Invitees" with options { "readonly" }
{
string called "Invitee" with options { "readonly" }
}
mtgStopDate: date called "Stop Date"
repeats: string called "Repeats" class "repeatClasses" with options { "suffixfromclass" "displayifempty" "required" }
}
class "CribNote" called "Event" of "calendar:metasoup:REVELAR" contains
{
mtgStartDate: date called "Date" with options { "required" }
mtgText: string called "Title" with options { "required" }
notes: note called "Notes"
mtgAlarm: integer called "Days Notice"
}
class "repeatingCribNote" called "Repeating Event" of "calendar:metasoup:REVELAR" contains
{
mtgStartDate: date called "Date" with options { "required" }
mtgText: string called "Title" with options { "required" }
notes: note called "Notes"
mtgStopDate: date called "Stop Date"
mtgAlarm: integer called "Days Notice"
repeats: string called "Repeats" class "repeatClasses" with options { "suffixfromclass" "displayifempty" "required" }
}
field class "repeatClasses" |daily| is "Every Day" "Every Day"
field class "repeatClasses" |weekly| is "Every week" "Every week"
field class "repeatClasses" |biweekly| is "Every other week" "Every other week"
field class "repeatClasses" |monthly| is "Every month" "Every month"
field class "repeatClasses" |monthlyByWeek| is "Same week each month" "Same week each month"
field class "repeatClasses" |yearly| is "Every year" "Every year"
field class "repeatClasses" |yearlyByWeek| is "Same week each year" "Same week each year"
field class "repeatClasses" |other| is "Other" ""
// To Do Application
application "todo" called "To Do" with options { "nofolders" "readonly" }
// To Do Soup
soup "To Do List" called "To Do List" of "todo" range "dateRange"
overview "todo:date" called "By Date" of "To Do List" queries "date" contains
{
column "Date" width 115 is date
}
class "todo" called "To Do Item" of "To Do List" with options { "readonly" } contains
{
|date|: date called "Date"
topics: set called "Items" { entry called "To Do" contains
{
mtgdone: boolean called "Completed"
mtgPriority: integer called "Priority"
text: text called "Text"
}
}
}
range "dateRange" called "Today" is "<range> [ daystart ... daystart + 1d )"
range "dateRange" called "This Week" is "<range> [ weekstart ... weekstart + 1w )"
range "dateRange" called "Next Week" is "<range> [ weekstart + 1w ... weekstart + 2w )"
range "dateRange" called "This Month" is "<range> [ monthstart ... monthstart + 1m )"
range "dateRange" called "Next 30 Days" is "<range> [ daystart ... daystart + 30d )"
range "dateRange" called "Next 60 Days" is "<range> [ daystart ... daystart + 60d )"
range "dateRange" called "Next 90 Days" is "<range> [ daystart ... daystart + 90d )"
range "dateRange" called "Next 120 Days" is "<range> [ daystart ... daystart + 120d )"
range "dateRange" called "Next 180 Days" is "<range> [ daystart ... daystart + 180d )"
range "dateRange" called "Next Year" is "<range> [ daystart ... daystart + 365d )"
range "dateRange" called "Previous 30 Days" is "<range> [ daystart - 30d ... daystart )"
range "dateRange" called "Previous 60 Days" is "<range> [ daystart - 60d ... daystart )"
range "dateRange" called "Previous 90 Days" is "<range> [ daystart - 90d ... daystart )"
range "dateRange" called "Previous 120 Days" is "<range> [ daystart - 120d ... daystart )"
range "dateRange" called "Previous 180 Days" is "<range> [ daystart - 180d ... daystart )"
range "optionalDateRange" called "All" is "<range> [ ... ]"
range "optionalDateRange" called "Today" is "<range> [ daystart ... daystart + 1d )"
range "optionalDateRange" called "This Week" is "<range> [ weekstart ... weekstart + 1w )"
range "optionalDateRange" called "Next Week" is "<range> [ weekstart + 1w ... weekstart + 2w )"
range "optionalDateRange" called "This Month" is "<range> [ monthstart ... monthstart + 1m )"
range "optionalDateRange" called "Next 30 Days" is "<range> [ daystart ... daystart + 30d )"
range "optionalDateRange" called "Next 60 Days" is "<range> [ daystart ... daystart + 60d )"
range "optionalDateRange" called "Next 90 Days" is "<range> [ daystart ... daystart + 90d )"
range "optionalDateRange" called "Next 120 Days" is "<range> [ daystart ... daystart + 120d )"
range "optionalDateRange" called "Next 180 Days" is "<range> [ daystart ... daystart + 180d )"
range "optionalDateRange" called "Next Year" is "<range> [ daystart ... daystart + 365d )"
range "optionalDateRange" called "Previous 30 Days" is "<range> [ daystart - 30d ... daystart )"
range "optionalDateRange" called "Previous 60 Days" is "<range> [ daystart - 60d ... daystart )"
range "optionalDateRange" called "Previous 90 Days" is "<range> [ daystart - 90d ... daystart )"
range "optionalDateRange" called "Previous 120 Days" is "<range> [ daystart - 120d ... daystart )"
range "optionalDateRange" called "Previous 180 Days" is "<range> [ daystart - 180d ... daystart )"
range "textRange" called "All" is "<range> [ ... ]"
range "textRange" called "#..D" is "<range> [ ... \"E\" )"
range "textRange" called "E..H" is "<range> [ \"E\" ... \"I\" )"
range "textRange" called "I..L" is "<range> [ \"I\" ... \"M\" )"
range "textRange" called "M..P" is "<range> [ \"M\" ... \"Q\" )"
range "textRange" called "Q..T" is "<range> [ \"Q\" ... \"U\" )"
range "textRange" called "U..X" is "<range> [ \"U\" ... \"Y\" )"
range "textRange" called "Y..Z" is "<range> [ \"Y\" ... ]"
// Calls Application
application "callapp" called "Calls" with options { "readonly" }
// Calls Soup
soup "Calls" called "Calls" of "callapp"
overview "calls:date" called "By Date" of "Calls" queries "timestamp"
contains
{
column "Date" width 115 is timestamp
column "Title" width 150 is title
}
class "calllog" called "Call" of "Calls" contains
{
timestamp: datetime called "Date"
title: string called "Title"
name: string called "Name"
phoneNumber: string called "Number"
notes: note called "History"
}